<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Javascript 基本语法</title>
</head>
<body>
	<script>
		var x;
		let y = 5;
		const pi = 3.14;
		console.log(x, 5, pi);
		let name = '如花'
		console.log(name);
		let empty_value = null;
		console.log(empty_value);

		let age = 19;

		if (age > 18){
			console.log('你已经成年了');
			
		}else{
			console.log('未成年');
			}

		console.log('for循环');

		for (let i = 0; i <=10; i++){
			console.log(i);
			
		}
		
		for (var i = 0; i < 10; i++){
			if(i == 2){
				continue;
			}
			if (i == 4){
				break;
			}
			console.log(i);
		}

		function hello_with_params(name){
			console.log('你好,'+ name);
			
		}

		hello_with_params('周杰伦');
	</script>
</body>

</html>